<extend name="Public/base"/>
<block name="content">
    <div class="row-fluid">
        <div class="block">
            <div class="navbar navbar-inner block-header">
                <div class="muted pull-left">
                    <if condition="ACTION_NAME eq 'unitAdd'">新增<else/>编辑</if> 人员
                </div>
            </div>
            <div class="block-content collapse in">
                <form action="__SELF__" method="post" class="form-horizontal">
                    <fieldset>
                        <div class="alert alert-error hide">
                            <button class="close" data-dismiss="alert"></button>
                            You have some form errors. Please check below.
                        </div>
                        <div class="alert alert-success hide">
                            <button class="close" data-dismiss="alert"></button>
                            Your form validation is successful!
                        </div>
                        <div class="control-group">
                            <label class="control-label">用户名<span class="required">*</span></label>
                            <div class="controls">
                                <input name="username" type="text" class="span6 m-wrap" value="{$info.name}"/>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">Email<span class="required">*</span></label>
                            <div class="controls">
                                <input name="email" type="text" class="span6 m-wrap" value="{$info.email}"/>
                            </div>
                        </div>
                        <dvi class="form-action">
                            <empty name="info">
                                <button class="btn btn-primary ajax-post" type="submit" target-form="form-horizontal">
                                    增加
                                </button>
                                <else/>
                                <button class="btn btn-primary ajax-post" type="submit" target-form="form-horizontal">
                                    保存
                                </button>
                            </empty>

                        </dvi>
                    </fieldset>
                </form>
            </div>
        </div>
    </div>
</block>